package lc.com.lcpicturebackend.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lc.com.lcpicturebackend.model.dto.chatai.ConversationAddRequest;
import lc.com.lcpicturebackend.model.dto.chatai.ConversationQueryRequest;
import lc.com.lcpicturebackend.model.dto.picture.PictureQueryRequest;
import lc.com.lcpicturebackend.model.entity.Conversation;
import com.baomidou.mybatisplus.extension.service.IService;
import lc.com.lcpicturebackend.model.entity.Picture;
import lc.com.lcpicturebackend.model.entity.User;

/**
* @author 罗超
* @description 针对表【conversation】的数据库操作Service
* @createDate 2025-05-26 22:02:24
*/
public interface ConversationService extends IService<Conversation> {

        /**
         * 创建会话
         * @param conversationAddRequest 请求体
         * @param loginUser   登录用户
         */
        void createConversation(ConversationAddRequest conversationAddRequest, User loginUser);


        /**
         * 构建SQL查询
         *
         * @param conversationQueryRequest 用户查询请求
         * @return 返回QueryWrapper
         */
        QueryWrapper<Conversation> getQueryWrapper(ConversationQueryRequest conversationQueryRequest, Long userId);


        /**
         * 删除会话
         * @param conversationId 会话id
         * @param loginUser 登录用户
         */
       void deleteConversation(String conversationId,User loginUser);

}
